package cn.zebra.dev.admin.module.discounts.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author wzhsun.cn
 * @version 1.0
 * @date 2020/5/8
 */
@Getter
@Setter
@ToString
public class DiscountsShopListDTO {

    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("优惠券编号")
    private String discountsId;

    @ApiModelProperty("优惠券额度")
    private BigDecimal amount;

    @ApiModelProperty("店铺id")
    private Long shopId;

    @ApiModelProperty("店铺详细信息")
    private ShopItemDTO shopItemDTOS;

    @ApiModelProperty("优惠券描述")
    private String describes;

    @ApiModelProperty("优惠券数量")
    private Long discountsNumb;

    @ApiModelProperty("条件类型0表示没有条件1表示等级条件2表示积分条件3满减")
    private Integer conditionType;

    @ApiModelProperty("实际条件")
    private Long conditions;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("起始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("过期时间")
    private LocalDateTime endTime;

    @ApiModelProperty("是否删除")
    private Boolean deleteFlag;

    @ApiModelProperty("优惠券状态0禁用1启用2过期")
    private Integer discountsStatus;

    @ApiModelProperty("商品id")
    private Long productId;

    @ApiModelProperty("商品详细信息")
    private ProductItemDTO productItemDTOS;

    @ApiModelProperty("优惠券图片")
    private String discountsImg;

    @ApiModelProperty("优惠券类型1 店铺类型;2 商品类型")
    private Integer discountsType;


}
